import request from '@/utils/request'

// 查询采购计划附件列表
export function listPlanFiles(query) {
  return request({
    url: '/planFiles/planFiles/list',
    method: 'get',
    params: query
  })
}

// 查询采购计划附件详细
export function getPlanFiles(fileId) {
  return request({
    url: '/planFiles/planFiles/' + fileId,
    method: 'get'
  })
}

// 新增采购计划附件
export function addPlanFiles(data) {
  return request({
    url: '/planFiles/planFiles',
    method: 'post',
    data: data
  })
}

// 修改采购计划附件
export function updatePlanFiles(data) {
  return request({
    url: '/planFiles/planFiles',
    method: 'put',
    data: data
  })
}

// 删除采购计划附件
export function delPlanFiles(fileId) {
  return request({
    url: '/planFiles/planFiles/' + fileId,
    method: 'delete'
  })
}
